﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="OilComponents.aspx.cs" Inherits="Admin_OilComponents" Title="Admin ~ OilComponents" %>

<%@ Register src="../Usercontrols/Header.ascx" tagname="Header" tagprefix="uc1" %>
<%@ Register src="../Usercontrols/Menu1.ascx" tagname="Menu1" tagprefix="uc2" %>
<%@ Register src="../Usercontrols/Footer.ascx" tagname="Footer" tagprefix="uc3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   
   <table cellpadding="0" cellspacing="0" width="100%">
    <tr>         
        <td align="center" >
           <table cellpadding="0" cellspacing="0" width="900px" >
             
              <tr>
                 <td align="center"  valign="top"> 
                     <uc1:Header ID="Header1" runat="server" />
                 </td>
              </tr>
               
              <tr>
                    <td align="right">
                        <uc2:Menu1 ID="Menu11" runat="server" />
                    </td>
               </tr>
                    
              <tr>
                   <td align="center" valign="top" >        
                     
                     <table cellpadding="5" cellspacing="0" width="100%" class="mainTableBkg">
                        
                        <tr valign="top" align="left">
                            <td>
                                    <table >
                                                                                              
                                               <tr valign="top" align="left" >                                    
                                                                <td> 
                                                                    <table>
                                                                        <tr>
                                                                             <td class="adminHeading ">OIL COMPONENTS </td>
                                                 <td><asp:Label ID="lblMsg" runat="server" CssClass="messageLabel"></asp:Label></td>
                                                 <td align="left"  ><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Admin/LiquidComposition.aspx">Go back to Liquid Composition</asp:HyperLink> </td>
                                                 <td align="right" ><asp:Label ID="lblExpdetails" runat="server" CssClass="informationLabe"></asp:Label> </td>                                        
                                            </tr>
                                                                    </table>
                                                                </td>
                                                 </tr>   
                                                            
                                <tr id="trtxtboxOilComponents" runat="server" >
                                    <td>
                                        <table >
                                                        <tr class="altanateAshBkg" id="trUserCode" runat="server" visible="false" >
                                                            <td class='label' style="width: 120px">OilComponentId</td>
                                                            <td><asp:TextBox ID="txtOilComponentsId" runat="server" cssclass='textBox' Width='150px' 
                                                                    MaxLength="50"></asp:TextBox></td>
                                                        </tr> 
                                                                                        
                                                        <tr class="ashBkg ">
                                                            <td colspan="2">
                                                                <table>
                                                                   
                                                                    <tr>
                                                                    <td class='label'>Aliphatic (wt%) <asp:TextBox ID="txtAliphatic" runat="server" 
                                                                            cssclass='textBox' Width='65px' MaxLength="100"></asp:TextBox></td>
                                                                    <td class='label'>Aromatic (wt%) <asp:TextBox ID="txtAromatic" runat="server" 
                                                                            cssclass='textBox' Width='65px' MaxLength="100"></asp:TextBox></td>
                                                                    <td class='label'>Polar&nbsp; (wt%) 
                                                                        <asp:TextBox ID="txtPolar" runat="server" 
                                                                            cssclass='textBox' Width='65px' MaxLength="10"></asp:TextBox></td>
                                                                    </tr> 
                                                                </table>
                                                            </td>
                                                        </tr> 
                                                        
                                                        <tr class="altanateAshBkg ">
                                                            <td colspan="3">
                                                                <table >
                                                                    <tr>
                                                                            <td>
                                                                             <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/btnSave.jpg" 
                                                                            onclick="btnSave_Click" /> </td>
                                                                            <td><asp:CheckBox ID="chkOilmisscellaneous" runat="server" AutoPostBack="True" 
                                                                            CssClass="radioButton" Text="Miscellaneous" 
                                                                            oncheckedchanged="chkOilmisscellaneous_CheckedChanged" />
                                                                            </td>      
                                                                            <td><asp:Button ID="btnPrevious" Text="Previous Records" runat="server" 
                                                                                    CssClass="button" onclick="btnPrevious_Click" /></td>                             
                                                                    </tr>
                                                                </table>
                                                            </td>                                                                
                                                        </tr>
                                                        
                                                        <tr id="trmisscellaneous" runat="server" visible="false" >                                    
                                                            <td colspan="3">
                                                                <table >
                                                                    <tr>
                                                                     <td>
                                                                          
                                                                            <tr id="trOilcompMiscTextboxes" runat="server">
                                                                            
                                                                               <td colspan="2">
                                                                                    <table >
                                                                                        <tr id="OilCompMisc" runat="server"  visible="false">
                                                                                        <td>Id</td>
                                                                                        <td>
                                                                                            <asp:TextBox ID="txtOilCompMiscId" runat="server" CssClass="textBox"></asp:TextBox>
                                                                                        </td>
                                                                                        </tr>
                                                                                    </table>                                                                                
                                                                                </td>
                                                                                
                                                                                    <td class="label">Category</td>
                                                                                    <td><asp:TextBox ID="txtCategory" runat="server" CssClass="textBox" Width="164px"></asp:TextBox> </td>
                                                                                    <td class="label">Amount (wt%) </td>
                                                                                    <td ><asp:TextBox ID="txtAmount" runat="server" CssClass="textBox"></asp:TextBox> </td>
                                                                                    <td><asp:Button ID="btnAddOilmisscellaneous" runat="server" Text="Add Miscellaneous" CssClass="button" onclick="btnAddOilmisscellaneous_Click" Width="123px" /> </td>
                                                                             </tr>
                                                                            
                                                                            <tr id="trOilcompMiscDg" runat="server">
                                                                                <td colspan="6">
                                                                                     <asp:GridView  Width="880px" AllowSorting="true" AutoGenerateEditButton="true"  
                                                                                        AllowPaging="true" AutoGenerateColumns="false" ID="dgOilCompMisc" 
                                                                                         runat="server" onrowediting="dgOilCompMisc_RowEditing" 
                                                                                     onpageindexchanging="dgOilComponents_PageIndexChanging" >
                                                                                        <Columns>      
                                                                                       <%-- <asp:CommandField ButtonType="Image" ShowDeleteButton="true" DeleteImageUrl="~/Images/Delete-16x16.png"  DeleteText="Delete" Visible="true" />                                      --%>
                                                                                        
                                                                                            <asp:BoundField DataField ="id" HeaderText ="ID"   />
                                                                                            <asp:BoundField  DataField="category" HeaderText="Category"/>
                                                                                            <asp:BoundField  DataField="amount" HeaderText="Amount" />
                                                                                                                                                                                                                         
                                                                                        </Columns>
                                                                                        <HeaderStyle CssClass="gridHeading" />
                                                                                        <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                                                                        <RowStyle CssClass="gridRowStyle" />                                                                                       
                                                                                        <PagerStyle />
                                                                                        <EditRowStyle CssClass="gridEditRow" />                                     
                                                                                    </asp:GridView>
                                                                                </td>
                                                                            </tr>
                                                                    
                                                                      </td> 
                                                                    </tr>                                                                 
                                                                </table>
                                                            </td>
                                                        </tr>
                                        </table>
                                    </td>                                    
                                </tr>
                            
                                                            
                                <tr id="trDgOilComponents" runat="server">
                                    <td align="left" style="padding-left:5px;" colspan='2'>
                                        <asp:GridView  Width="880px" AllowSorting="true" AutoGenerateEditButton="true"  
                                            AllowPaging="true" AutoGenerateColumns="false" ID="dgOilComponents" 
                                            runat="server" onrowediting="dgOilComponents_RowEditing" 
                                            onpageindexchanging="dgOilComponents_PageIndexChanging" >
                                            <Columns>      
                                           <%-- <asp:CommandField ButtonType="Image" ShowDeleteButton="true" DeleteImageUrl="~/Images/Delete-16x16.png"  DeleteText="Delete" Visible="true" />                                      --%>
                                            
                                                <asp:BoundField DataField ="id" HeaderText ="ID"   />
                                                <asp:BoundField  DataField="aliphatic" HeaderText="Aliphatic"/>
                                                <asp:BoundField  DataField="aromatic" HeaderText="Aromatic" />
                                                <asp:BoundField  DataField="polar" HeaderText="Polar" />
                                                                                          
                                            </Columns>
                                            <HeaderStyle CssClass="gridHeading" />
                                            <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                            <RowStyle CssClass="gridRowStyle" />                                                                                       
                                            <PagerStyle />
                                            <EditRowStyle CssClass="gridEditRow" />                                     
                                        </asp:GridView>
                                    </td>
                             </tr>  
                           
                                    </table>
                            </td>
                        </tr>               
                         
                     </table>
                     
                   </td>        
                </tr>  
                                                   
              <tr>
                        <td>    
                            <uc3:Footer ID="Footer1" runat="server" />
                        </td>
                   </tr> 
                    
             </table>
           </td> 
      </tr>
 </table> 

</asp:Content>

